﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Guoling.ProjectName.Model.ViewIputModel;

namespace Guoling.ProjectName.Application
{
    public interface IOrderAppService:IDisposable
    {
        Task<bool> Add(OrderViewModel orderViewModel);

        Task<OrderViewModel> GetById(int id);

        Task<IEnumerable<OrderViewModel>> GetAll();

        Task<bool> Update(OrderViewModel orderViewModel);

        Task<bool> Remove(int id);
    }
}
